import 'package:easy_video/internal/http_client.dart';
import 'package:dio/dio.dart';

class SwiperApi {
  // 静态变量来保存唯一的实例
  static final SwiperApi _instance = SwiperApi._internal();

  // 私有构造函数
  SwiperApi._internal();

  // 工厂构造函数
  factory SwiperApi() {
    return _instance;
  }

  // login 登录
  Future<Response> index() async {
    return HttpClient().get("/swiper/index");
  }
}
